'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function WriteFunction(Of TValue)( _ ByVal dataVariable As UADataVariable, _ ByVal writeFunction As Func(Of UAAttributeData(Of TValue),UAStatusCode), _ ByVal ParamArray arrayDimensions() As Integer _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim writeFunction As Func(Of UAAttributeData(Of TValue),UAStatusCode) Dim arrayDimensions() As Integer Dim value As UADataVariable value = UADataVariableExtension.WriteFunction(Of TValue)(dataVariable, writeFunction, arrayDimensions)
[Extension()] [NotNull()] public static UADataVariable WriteFunction<TValue>( UADataVariable dataVariable, Func<UAAttributeData<TValue>,UAStatusCode> writeFunction, params int[] arrayDimensions )
[Extension()] [NotNull()] public: static UADataVariable^ WriteFunctiongeneric<typename TValue> ( UADataVariable^ dataVariable, Func<UAAttributeData<TValue^>^,UAStatusCode^>^ writeFunction, ... array<int>^ arrayDimensions )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - writeFunction
- The write function, i.e. the function that accepts the attribute data to be written, performs the write operation, and returns the status code that is the result of the OPC UA Write.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - arrayDimensions
- The size of each dimension of the array value.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TValue
- The type of the value of the data variable.
Return Value
This method never returns null
(Nothing
in Visual Basic).